package com.health.dao;

import com.health.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Classname SetmealDao
 * @Description TODO
 * @Version 1.0.0
 * @Date 2023/3/16 14:47
 * @Author RainGrd
 */
public interface UserDao {


    int insertUser(User user);


    List<User> selectUserByCondition(@Param("queryString") String queryString);


    long selectTotalByCondition(@Param("queryString") String queryString);

    User selectUserByUserNameAndStation(@Param("userName") String userName);

    void insertUserAndRole(@Param("user_id") Integer userId, @Param("role_id") Integer roleId);

    void deleteAssociation(@Param("user_id") Integer id);

    int updateUser(User user);

    List<Integer> selectRoleIdsByUserId(@Param("user_id") Integer userId);

    int deleteUser(Integer id);

    /**
     * 查询所有健康管理师
     *
     * @return
     */
    List<User> selectUserRoleAll();

    User selectUserByKey(@Param("userId") Integer userId);

    User selectUserByUserName(@Param("userName") String username);

/*
    List<CheckGroup> selectAll();





    long selectCheckGroupCountById(long id);


    int updateCheckGroup(CheckGroup checkGroup);

    int deleteCheckGroup(long id);

    int insertCheckGroupAndCheckItem(@Param("checkgroup_id") Integer checkGroupId, @Param("checkitem_id") Integer checkItemId);

    List<Integer> selectCheckItemIdsByCheckGroupId(@Param("checkgroup_id") Integer id);

    int deleteAssociation(@Param("checkgroup_id") Integer id);*/

}
